﻿<Application x:Class="Application"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    StartupUri="MainWindow.xaml">
    <Application.Resources>

        <Hyperlink x:Key="LogHyperlink">log</Hyperlink>

        <Style TargetType="Frame">
            <Setter Property="Background" Value="PowderBlue"/>
        </Style>
        
        <Style TargetType="TabControl">
            <Setter Property="Background" Value="PowderBlue"/>
        </Style>

        <Style TargetType="TabItem">
            <Setter Property="Background" Value="PowderBlue"/>
        </Style>

        <Style x:Key="PageTitle" TargetType="TextBlock">
            <Setter Property="FontWeight" Value="Bold"/>
            <Setter Property="Foreground" Value="BlueViolet"/>
            <Setter Property="Margin" Value="0,0,0,10"/>
        </Style>
        
        <Style x:Key="ParagraphPageTitle" TargetType="Paragraph">
            <Setter Property="FontWeight" Value="Bold"/>
            <Setter Property="Foreground" Value="BlueViolet"/>
            <Setter Property="Margin" Value="0,0,0,10"/>
        </Style>

        <Style x:Key="LabelStatusOkay"  TargetType="Label">
            <Setter Property="Background" Value="CornSilk"/>
            <Setter Property="FontStyle" Value="Italic"/>
        </Style>

        <Style x:Key="LabelStatusError"  TargetType="Label">
            <Setter Property="Background" Value="CornSilk"/>
            <Setter Property="Foreground" Value="Red"/>
            <Setter Property="FontStyle" Value="Italic"/>
        </Style>

        <Style x:Key="LabelStatusWarning"  TargetType="Label">
            <Setter Property="Background" Value="CornSilk"/>
            <Setter Property="Foreground" Value="BlueViolet"/>
            <Setter Property="FontStyle" Value="Italic"/>
        </Style>

        <Style x:Key="TextBlockStatusWarning"  TargetType="TextBlock">
            <Setter Property="Background" Value="CornSilk"/>
            <Setter Property="Foreground" Value="BlueViolet"/>
            <Setter Property="FontStyle" Value="Italic"/>
        </Style>

        <Style x:Key="TocButton2" TargetType="Button">
            <Setter Property="Background" Value="White"/>
            <Setter Property="BorderBrush" Value="White"/>
        </Style>

        <Style x:Key="AppFont">
            <Setter Property="TextBlock.FontFamily" Value="Georgia"/>
            <Setter Property="TextBlock.FontSize" Value="16"/>
        </Style>

        <Style x:Key="SqlFont">
            <Setter Property="TextBlock.FontFamily" Value="Courier New"/>
            <Setter Property="TextBlock.FontSize" Value="12"/>
        </Style>

        <Style x:Key="LogItemFont">
            <Setter Property="TextBlock.FontFamily" Value="Courier New"/>
            <Setter Property="TextBlock.FontSize" Value="12"/>
        </Style>

        <Style x:Key="SqlInspectorItemFont">
            <Setter Property="TextBlock.FontFamily" Value="Courier New"/>
            <Setter Property="TextBlock.FontSize" Value="12"/>
        </Style>
        
        <Style x:Key="WinformsStyleFont">
            <Setter Property="TextBlock.FontFamily" Value="Microsoft San Serif"/>
            <Setter Property="TextBlock.FontSize" Value="11"/>
        </Style>

        <!--<Style x:Key="TocButton" TargetType="Button">
            <Setter Property="Margin" Value="15"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Grid>
                            <Ellipse Width="{TemplateBinding Width}" Height="{TemplateBinding Height}">
                                <Ellipse.Fill>
                                    <RadialGradientBrush GradientOrigin=".2,.2">
                                        <GradientStop Offset="0.1" Color="White"/>
                                        <GradientStop Offset="1" Color="Blue"/>
                                    </RadialGradientBrush>
                                </Ellipse.Fill>
                            </Ellipse>
                            <ContentPresenter Content="{TemplateBinding Content}"
                                              HorizontalAlignment="Center"
                                              VerticalAlignment="Center"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>-->


        <Style TargetType="Button">
            <Setter Property="SnapsToDevicePixels" Value="true"/>
            <Setter Property="OverridesDefaultStyle" Value="true"/>
            <!--<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>-->
            <Setter Property="MinHeight" Value="23"/>
            <Setter Property="MinWidth" Value="25"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Border x:Name="Border"  
                                CornerRadius="0" 
                                BorderBrush="White"
                                BorderThickness="1">
                            <ContentPresenter Margin="5"
                                              HorizontalAlignment="Center"
                                              VerticalAlignment="Center"
                                              RecognizesAccessKey="True"/>
                        </Border>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsKeyboardFocused" Value="true">
                                <!--<Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource DefaultedBorderBrush}" />-->
                            </Trigger>
                            <Trigger Property="IsDefaulted" Value="true">
                                <Setter TargetName="Border" Property="BorderBrush" Value="White" />
                            </Trigger>
                            <Trigger Property="IsMouseOver" Value="true">
                                <Setter TargetName="Border" Property="BorderBrush" Value="BlueViolet" />
                            </Trigger>
                            <Trigger Property="IsPressed" Value="true">
                                <Setter TargetName="Border" Property="Background" Value="CornSilk" />
                            </Trigger>
                            <Trigger Property="IsEnabled" Value="false">
                                <!--<Setter TargetName="Border" Property="Background" Value="{StaticResource DisabledBackgroundBrush}" />-->
                                <!--<Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource DisabledBorderBrush}" />-->
                                <!--<Setter Property="Foreground" Value="{StaticResource DisabledForegroundBrush}"/>-->
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>


        <Style x:Key="LinkStyle" TargetType="Hyperlink">
            <Setter Property="FontFamily" Value="Fixed"/>
            <Setter Property="FontStyle" Value="Oblique"/>
            <Setter Property="FontSize" Value="14"/>
        </Style>

        <Style x:Key="Heading1" TargetType="Paragraph">
            <Setter Property="TextAlignment" Value="Center"/>
            <Setter Property="FontWeight" Value="Bold"/>
        </Style>

        <Style TargetType="Paragraph">
            <Setter Property="TextAlignment" Value="Left"/>
        </Style>

        <Style x:Key="FlowDocumentScrollViewerStyle" TargetType="FlowDocumentScrollViewer">
            <Setter Property="VerticalScrollBarVisibility" Value="Auto"/>
            <Setter Property="HorizontalAlignment" Value="Left"/>
            <Setter Property="HorizontalContentAlignment" Value="Center"/>
            <Setter Property="Padding" Value="0"/>
        </Style>

        <Style x:Key="FlowDocumentPageViewerStyle" TargetType="FlowDocumentPageViewer">
            <Setter Property="HorizontalAlignment" Value="Left"/>
            <Setter Property="HorizontalContentAlignment" Value="Center" />
        </Style>


    </Application.Resources>
</Application>
